package br.heusser.productfx.src.dao;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 * @author Diego
 */
public class DAO {

    private EntityManagerFactory emf;

    public DAO() {
        this.emf = Persistence.createEntityManagerFactory("productfx");
    }

    protected EntityManager getEM() {
        return this.emf.createEntityManager();
    }
}
